package cn.jtool.dig.server;

import cn.jtool.dig.common.util.SpringContextUtil;
import com.jtool.knife.web.EnableExceptionHandler;
import com.jtool.knife.web.EnableWebLog;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;

import java.util.Date;

@Slf4j
@Import({
        SpringContextUtil.class
})
@EnableWebLog
@SpringBootApplication
@EnableExceptionHandler
public class Application {

    public static Date serverStartTime;

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        log.info("服务启动成功");
        serverStartTime = new Date();
    }


}
